package com.student.entities;

//这个主要针对数据显示用，在数据库中并没有cart表
public class CartEntity {
	private int cart_id = 0;
	private String cart_name = "";
	private double cart_price = 0d;
	private int cart_count = 1;
	private int cart_state = 0;
	private String cart_time = null;
	private String cart_no = "";
	private String cart_sellerName = "";

	public CartEntity() {
		super();
	}

	public CartEntity(int cart_id, String cart_name, double cart_price,
			int cart_count, int cart_state, String cart_time, String cart_no,
			String cart_sellerName) {
		super();
		this.cart_id = cart_id;
		this.cart_name = cart_name;
		this.cart_price = cart_price;
		this.cart_count = cart_count;
		this.cart_state = cart_state;
		this.cart_time = cart_time;
		this.cart_no = cart_no;
		this.cart_sellerName = cart_sellerName;
	}

	public int getCart_id() {
		return cart_id;
	}

	public String getCart_name() {
		return cart_name;
	}

	public double getCart_price() {
		return cart_price;
	}

	public int getCart_count() {
		return cart_count;
	}

	public int getCart_state() {
		return cart_state;
	}

	public String getCart_time() {
		return cart_time;
	}

	public String getCart_no() {
		return cart_no;
	}

	public String getCart_sellerName() {
		return cart_sellerName;
	}

	public void setCart_id(int cart_id) {
		this.cart_id = cart_id;
	}

	public void setCart_name(String cart_name) {
		this.cart_name = cart_name;
	}

	public void setCart_price(double cart_price) {
		this.cart_price = cart_price;
	}

	public void setCart_count(int cart_count) {
		this.cart_count = cart_count;
	}

	public void setCart_state(int cart_state) {
		this.cart_state = cart_state;
	}

	public void setCart_time(String cart_time) {
		this.cart_time = cart_time;
	}

	public void setCart_no(String cart_no) {
		this.cart_no = cart_no;
	}

	public void setCart_sellerName(String cart_sellerName) {
		this.cart_sellerName = cart_sellerName;
	}

	@Override
	public String toString() {
		return "CartEntity [cart_id=" + cart_id + ", cart_name=" + cart_name
				+ ", cart_price=" + cart_price + ", cart_count=" + cart_count
				+ ", cart_state=" + cart_state + ", cart_time=" + cart_time
				+ ", cart_no=" + cart_no + ", cart_sellerName="
				+ cart_sellerName + "]";
	}

}
